package vaani.shabd;

import java.util.Vector;

/**
 *
 * @author sourcemorph
 */

public class TagAnalyzer {

    private static Vector<String> verbs;
    private static Vector<String> nouns;

    static {
        verbs = new Vector<String>();
        nouns = new Vector<String>();

        verbs.add("VB");
        verbs.add("VBD");
        verbs.add("VDG");
        verbs.add("VDN");
        verbs.add("VDP");
        verbs.add("VDZ");

        nouns.add("NN");
        nouns.add("NNS");
        nouns.add("NNP");
        nouns.add("NNPS");
    }

    public static boolean isVerb(String tag) {
        if(verbs.contains(tag)) 
            return true; 
        else
            return false;
    }

    public static boolean isNoun(String tag) {
        if(nouns.contains(tag))
            return true;
        else
            return false;
    }
}
